<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>用户中心_{$web_name}</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="Keywords" content="用户中心" />
		<meta name="Description" content="用户中心" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
		<meta name="format-detection" content="telephone=no">
		<tc_include file="Public:head" />
		<link rel="stylesheet" type="text/css" href="/themes/wnsc/Home/User/css/user.css" />
	</head>

	<body>
		<tc_include file="Public:nav" />
		<div class="w990" id="content" style="background: none;">
			<div class="margin-w1210 clearfix">
				<div class="w">
					<div class="breadcrumb clearfix">
						<a href="/" class="index">首页</a> <span class="crumbs-arrow">&gt;</span> <span class="last">用户中心</span></div>
				</div>
				<div class="blank"></div>
				<tc_include file="Public:user_left" />

				<div class="user-right">
					<div class="account">
						<div class="notice"> <i></i> <span>用户中心公告：用户中心公告！</span> </div>
						<div class="money">
							<ul class="clearfix">
								<li class="first">
									<div class="title"><span>账号余额</span></div>
									<div class="pic">
										<a href="{:U('user/withdrawal')}"><i class="user_bg"></i></a>
									</div>
									<p>
										<a href="{:U('user/withdrawal')}">¥{$userinfo['money']}</a>
									</p>
								</li>
								<li class="second">
									<div class="title"><span>代言红包</span></div>
									<div class="pic">
										<a href="{:U('user/daiyan')}"><i class="user_bg"></i></a>
									</div>
									<p>
										<a href="{:U('user/daiyan')}"> ¥{:number_format($daiyan_price,2)}</a>
									</p>
								</li>
								<li class="third">
									<div class="title"><span>优惠券</span></div>
									<div class="pic"><i class="user_bg"></i></div>
									<p>
										<a href="{:U('user/bonus')}">{$coupon_list}张</a>
									</p>
								</li>
							</ul>
						</div>
						<div class="security">
							<div class="improve">
								<p>账户安全</p>
								<span class="improve-name" style="color: #46c519;"> 安全 </span> <i class="progress progress2"><em></em></i>
								<a href="javascript:;" title="提升账户安全等级">提升 &gt;</a>
							</div>
							<div class="safe-info clearfix" >
								<div class="safe-type phone"style="width: 200px;">
									<i class="tit-icon"></i>
									<span class="safe-name">手机：{$userinfo.phone}</span>
									<a class="res" href="javascript">已验证</a>
								</div>
							
							</div>
						</div>
						<div class="middle order">
							<div class="line1 clearfix">
								<div class="title"><i></i><span>交易提醒</span></div>
								<div class="status">
									<ul>
										<li>
											<a href="{:U('User/order',array('stauts'=>1))}" title="待付款">待付款<span>{$wcount}</span></a><i></i></li>
										<li>
											<a href="{:U('User/order',array('stauts'=>2))}" title="待发货">待发货<span>{$dfcount}</span></a><i></i></li>
										<li>
											<a href="{:U('User/order',array('stauts'=>3))}" title="待收货">待收货<span>{$dscount}</span></a>
										</li>
									</ul>
								</div>
								<a class="more" href="user.php?act=order_list" title="查看全部订单" style="width: 90px;background: none;">查看全部订单 &gt;</a>
							</div>
							<empty name="order_goods_list">
								<div class="emptyFrame clearfix"> <i class="user_bg"></i><span>您好久没在商城购物了，这里空空的，赶快去购物吧！</span> </div>
							</empty>
							<notempty name="order_goods_list">
							
								<div class="proListUc">
									<foreach name="order_goods_list" item="v">
										<ul class="listLine clearfix">

											<li>
												<ul class="img clearfix">
													<li>
														<a href="{:U('user/order_info',array('id'=>$v['order_id']))}" title="{$v['goods_name']}" target="_blank">

															<img src="{$v['goods_image']}" alt="{$v['goods_name']}">

														</a> <span class="order-num">{$v['goods_num']}</span> </li>
												</ul>
											</li>
											<li class="name">
												<a href="{:U('user/order_info',array('id'=>$v['order_id']))}" title="{$v['goods_name']}" target="_blank">{$v['goods_name']}</a>
											</li>
											<li class="attr">
												<notempty name="v.goods_sku_spec"><a href="javascript:;">规格：{$v.goods_sku_spec}</a></notempty>
												<notempty name="v.goods_sku_style"><a href="javascript:;">颜色：{$v.goods_sku_style}</a></notempty>
											</li>
											
											<li class="check">
												<a href="{:U('user/order_info',array('id'=>$v['order_id']))}" title="查看订单" target="_blank">查看</a>
											</li>

										</ul>
									</foreach>
								</div>
							</notempty>

						</div>
						<div class="middle cart">
							<div class="line1 clearfix">
								<div class="title"><i></i><span>我的购物车</span></div>
							</div>
							<empty name="cart_info">
								<div class="emptyFrame_cart"> <i class="user_bg"></i><span>您的购物车里空空的，赶快去购物吧！</span> </div>
							</empty>
							<notempty name="cart_info">
								<style type="text/css">
									.div_scroll::-webkit-scrollbar-thumb {
										background-color: #e31939;
									}
									
									.div_scroll::-webkit-scrollbar {
										width: 2px;
										height: 2px;
									}
								</style>
								<div class="proListUc_cart">
									<div class="div_scroll">
										<div style="float:left; height:auto; width:auto">
											<ul class="listLine_cart clearfix">
												<foreach name="cart_info" item="v">
													<li>
														<a href="{$v.url}" target="_blank" title="{$v.shop_name}" class="pic"> <img src="{$v.shop_picture}" alt="{$v.shop_name}"> </a>
														<a href="{$v.url}" target="_blank" title="{$v.shop_name}" class="name">{$v.shop_name}</a>
														<p>售价：
															<font>￥{$v.price}</font>
														</p>
													</li>
												</foreach>
											</ul>
										</div>
									</div>
									<p class="more" style="background: none;">
										<a href="{:U('cart/cart_list')}" target="_blank" title="查看购物车所有商品">查看购物车所有商品 &gt;</a>
									</p>
								</div>
							</notempty>

						</div>

						<div class="middle collect">
							<div class="line1" id="tab1" onmouseover="setTabCatGoods('tab',1,2)">
								<div class="title"><i></i><span>商品收藏</span></div>
							</div>
							<div class="line2" id="tab2" onmouseover="setTabCatGoods('tab',2,2)">
								<div class="title"><i></i><span>店铺关注</span></div>
							</div>
							<div style="height:0px;line-height:0px;clear:both"></div>
							<div class="tab_con" style="width:100%">
								<div class="" id="con_tab_1">
									<empty name="rs_shop">
										<div class="emptyFrame_collect"> <i class="user_bg"></i><span>您的收藏空空的，赶快去购物吧！</span> </div>
									</empty>
									<notempty name="rs_shop">
										<div class="colList clearfix">
											<div class="colFrame">
												<ul style="left: 0px;" class="clearfix">
													<foreach name="rs_shop" item="v">
														<li class="first">
															<a href="{:U('shop/index',array('id'=>$v['id']))}" title="{$v['title']}" target="_blank" class="img"> <img src="{$v['image']}" alt="{$v['title']}"> <span>￥{$v['price']}</span> </a>
															<a href="{:U('shop/index',array('id'=>$v['id']))}" title="{$v['title']}" target="_blank" class="name">{$v['title']}</a>
														</li>
													</foreach>
												</ul>
											</div>
											<p class="more" style="background: none;">
												<a href="{:U('user/collect_shop')}" title="查看收藏的所有商品">查看收藏的所有商品 &gt;</a>
											</p>
										</div>
									</notempty>
								</div>
								<div id="con_tab_2" style="display:none">
									<empty name="rs_store">
										<div class="emptyFrame_shop"> <i class="user_bg"></i><span>您的店铺收藏空空的，赶快去收藏店铺吧！</span> </div>
									</empty>
									<notempty name="rs_shop">
										<div class="shopList clearfix">
											<div class="colFrame">
												<ul style="left: 0px;" class="clearfix">
													<foreach name="rs_store" item="v">
														<li class="first">
															<a href="{:U('store/index',array('id'=>$v['id']))}" title="{$v['title']}" target="_blank" class="img">
																<div class="mask"></div>

																<img src="{$v['portrait']}" alt="{$v['title']}" style="border-radius: 60px;">

															</a>
															<a href="{:U('store/index',array('id'=>$v['id']))}" title="{$v['title']}" target="_blank" class="name">{$v['title']}</a>
														</li>
													</foreach>

												</ul>
											</div>
											<p class="more" style="background: none;">
												<a href="{:U('user/collect_store')}" title="查看收藏的所有店铺">查看收藏的所有店铺 &gt;</a>
											</p>
										</div>
									</notempty>
								</div>
							</div>
						</div>
						<div class="middle history" style="width: 998px;">
							<div class="line1 clearfix">
								<div class="title"><i></i><span>我的足迹</span></div>
							</div>
							<empty name="rs_history">
								<div class="emptyFrame_history"> <i class="user_bg"></i><span>您还没有留下任何足迹！</span> </div>
							</empty>
							<notempty name="rs_history">
								<div class="colList clearfix">
									<div class="colFrame">
										<ul style="left: 0px;" class="clearfix">
											<foreach name="rs_history" item="v">
												<notempty name="v['id']">
												<li class="first">
													<a href="{:U('shop/index',array('id'=>$v['id']))}" title="{$v['title']}" target="_blank" class="img"> 
														<img src="{$v['image']}" alt="{$v['title']}">
													</a>
													<a href="{:U('shop/index',array('id'=>$v['id']))}" title="{$v['title']}" target="_blank" class="name">
														{$v['title']}
													</a>
												</li>
												</notempty>
											</foreach>
										</ul>
									</div>

								</div>
							</notempty>
						</div>
					</div>

					<div class="box">

					</div>

				</div>
			</div>
		</div>
		<div style="clear: both;"></div>
		<tc_include file="Public:footer" />
		<script>
			/*第一种形式 第二种形式 更换显示样式*/
			function setTabCatGoods(name, cursel, n) {
				for(i = 1; i <= n; i++) {
					var menu = document.getElementById(name + i);
					var con = document.getElementById("con_" + name + "_" + i);
					con.style.display = i == cursel ? "block" : "none";
					menu.className = i == cursel ? "line1" : "line2";
				}
			}
		</script>

	</body>

</html>